function setConstraints(mesh,constraint)
%constraint = [node cx cy vx vy
%               ...............]
% 1 means true
% 0 means false
nc = size(constraint,1);
for i=1:nc
    c = constraint(i,:);
    n = c(1);
    cb = c(2:3);
    vx = c(4);
    vy = c(5);
    cf = fem2.Constraint(cb);
    cf.setValue(0,vx);
    cf.setValue(1,vy);
    mesh.getNode(n-1).setConstraint(cf);
end
end
